package com.sun.service.ums;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sun.pojo.UmsAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.pojo.UmsRole;

import java.util.List;

/**
 * <p>
 * 后台用户表 服务类
 * </p>
 *
 * @author 妙妙屋
 * @since 2021-12-08
 */
public interface IUmsAdminService extends IService<UmsAdmin> {

    UmsAdmin queryUmsAdminInfo(String uname);

    IPage<UmsAdmin> selectPageAdmin(String keyword, String pageNum, String pageSize);

    List<UmsRole> getRoleByAdminId(Long id);

    Integer deleteAllRoles(Long adminId);

    Integer saveBatchRoles(Long adminId, String roleIds);
}
